<?php

class AppController extends \BaseController {
    
    function viewHome() 
    { 
        return View::make('app.home')->with(array (
            'title' => 'welcome',
            'group' => Auth::user()->group
        ));
    }

    function logout()
    {
        Auth::logout();
        return Redirect::to('/');
    }
}